Skip to main content
This forum is closed to new posts and responses. The content has been migrated to the Digital Solutions Community. Please join us there for new content as well as this content. For customer support, please visit the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext

RE: detaching files uploaded to server via web browser and File Upload
~Vijay Rekromarings 5.Jan.04 06:58 PM a Web browser
Domino Web Access 6.0.1 CF3 Linux - RedHat


I have been using the following for quite some time to extract files from email messages where the file name is included in the subject.
The curDoc is the email document and should work for another type of document.

public void extractFile()
{
try
{
String subj = curDoc.getItemValueString("Subject");
int sp = subj.lastIndexOf(' ');
subj = subj.substring(sp + 1);
EmbeddedObject file = curDoc.getAttachment(subj);

salesFileName = "Sales" + getNextFileNumber();
file.extractFile(salesFileLocation + salesFileName);


// file is now saved at salesFileLocation\salesFileName

}
catch(NotesException e)....




detaching files uploaded to server ... (~Joan Froweplop... 29.Dec.03)
. . RE: detaching files uploaded to ser... (~Mario Lopkiste... 29.Dec.03)
. . . . RE: detaching files uploaded to ser... (~Joan Froweplop... 30.Dec.03)
. . RE: detaching files uploaded to ser... (~Vijay Rekromar... 5.Jan.04)


Document Options






  Document options
Print this pagePrint this page

Search this forum

Forum views and search


  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS